or

inline fun <E, A> Either<E, A>.or(f: () -> Either<E, A>): Either<E, A>(source)

Returns the first successful either, otherwise the last failure


infix fun <T> Option<T>.or(other: () -> Option<T>): Option<T>(source)

Returns this if it's a Some, otherwise returns the other instance


infix fun <T> Option<T>.or(other: Option<T>): Option<T>(source)

Deprecated

Use or(other: () -> Option<T>) instead

Replace with

or { other }

Returns this if it's a Some, otherwise returns the other instance